package component;
/*================================*/

/* This is a class to be visited  */
/*================================*/

import visitor.Visitor;

public class CDDrive implements ComputerParts {

    public static final String NAME = "product.CDDrive";
    private final double PRICE = 30.00;
    public static final String FEATURES = "CD Drive. H3K";

    public String getName() {
        return NAME;
    }

    public double getPrice() {
        return PRICE;
    }

    public String getDescription() {
        return FEATURES;
    }

    public void accept(Visitor v) {
        System.out.println("product.CDDrive has been visited.");
        v.visitCDDrive(this);
    }
}
